package com.etc.controller;

import com.etc.aop.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("aop")
@RestController
public class AopController {
    private UserService service = new UserService();

    @GetMapping("test1")
    public String test1(){
        service.dosomething();
        return "test1";
    }
}
